package com.woniuxy.Controller;

import com.woniuxy.entity.K15Grade;
import com.woniuxy.service.K15GradeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (K15Grade)表控制层
 *
 * @author mayuhang
 * @since 2021-04-25 23:02:47
 */
@RestController
@RequestMapping("k15Grade")
public class K15GradeController {
    /**
     * 服务对象
     */
    @Resource
    private K15GradeService k15GradeService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public K15Grade selectOne(Integer id) {
        return this.k15GradeService.queryById(id);
    }

}
